﻿using System;
using System.Windows;
using Microsoft.Phone.Controls;


namespace WeiboSdk
{
    public class SdkShare : SdkSendBase
    {
        public override void Show()
        {
            //(Application.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri("/WeiboSdk;component/PageViews/SharePageView.xaml", UriKind.Relative));
            //SharePageView.sdkSendBase = this;
            (Application.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri("/WeiboSdk;component/PageViews/MySendView.xaml", UriKind.Relative));
            MySendView.sdkSendBase = this;
        }
    }

    public class SdkCreateCom : SdkSendBase
    {
        public override void Show()
        {
            (Application.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri("/WeiboSdk;component/PageViews/MyCommentView.xaml", UriKind.Relative));
            MyCommentView.SdkCommentBase = this;
        }
    }

    public class SdkCreateRep : SdkSendBase
    {
        public override void Show()
        {
            (Application.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri("/WeiboSdk;component/PageViews/MyRepostView.xaml", UriKind.Relative));
            MyRepostView.SdkCommentBase = this;
        }
    }

    public class SdkComReply : SdkSendBase
    {
        public override void Show()
        {
            (Application.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri("/WeiboSdk;component/PageViews/MyReplyView.xaml", UriKind.Relative));
            MyReplyView.SdkCommentReply = this;
        }
    }
}
